package com.kfm.jdbc.day0404.thread;

public class MyRunnable implements Runnable{
    private String name = "";
    @Override
    public void run() {
        // 执行线程的任务
        for (int i = 0; i < 10; i++) {
            // Thread.currentThread() 获取当前线程
            System.out.println(Thread.currentThread().getName() + i);
        }
    }
}
